package org.teamh.gui.engine.model;

/**
 * This class represents a whole 3D model, containing several meshes. 
 * @author richard
 *
 */
public class Model {
	private Mesh[] meshes;
	
	public Model(Mesh[] meshes) {
		this.meshes = meshes;
	}
	
	public void render() {
		for(int i = 0; i < meshes.length; i++) {
			meshes[i].render();
		}
	}
	
	public void dealloc() {
		for(int i = 0; i < meshes.length; i++) {
			meshes[i].dealloc();
		}
	}
	
	public Mesh[] getMeshes() {
		return meshes;
	}
}
